package com.restaurant.application.util;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

/**
 * startTime >= stime endTime < etime
 *
 * @author Administrator
 */
public class DateTool {

    private static final String DATETIME_STR = "ddMMyy";

    public static String getCMNumber() {
        return getDateStr(DATETIME_STR);
    }

    public static String getDateStr(String formatter) {
        return LocalDate.now().format(DateTimeFormatter.ofPattern(formatter));
    }
}
